package com.zzty.demo.dao;


import com.zzty.demo.entity.Clazz;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface ClazzDao {
    @Select("select * from clazz where id=#{id}")
    public Clazz getClazzById(Clazz clazz);

    @Select("select * from clazz;")
    public List<Clazz> allClazz();
}
